import request from '@/config/axios'
// import signMd5Utils from '@/utils/signMd5Utils'
// import moment from 'moment'

// const time = { _t: Math.trunc(moment().valueOf() / 1000) }
// redis 左侧折线图
export const getRedisMemoryInfoApi = (url: string, params = {}): Promise<RedisResponse> => {
  // const TimeParams = Object.assign(params, time)
  //将签名和时间戳，添加在请求接口 Header
  return request.get({ url, params })
}
// redis 右侧折线图
export const getRedisKeysSizeApi = (url: string, params: any = {}): Promise<RedisResponse> => {
  return request.get({ url, params })
}
export const getRedisInfoApi = (url: string, params: any = {}): Promise<LoginResponse> => {
  return request.get({ url, params })
}

// function setHearders(url, params) {
//   return {
//     'X-Sign': signMd5Utils.getSign(url, params),
//     'X-TIMESTAMP': signMd5Utils.getDateTimeToString()
//   }
// }
